#include "speedfactory.h"

#include <cassert>

SpeedFactory::SpeedFactory(){
	TrainerFactory::registerTrainer("speed", this);
}

Speed* SpeedFactory::createTrainer(const QDomElement& element){
	assert(!element.isNull());
	assert(element.tagName()=="Speed");
	
	Speed* speed = new Speed(element);
	
	return speed;
}